package com.jianguozh.difs.support.api.ops.dto;

import com.jianguozh.difs.framework.validator.group.AddGroup;
import com.jianguozh.difs.framework.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 资源dto
 * @author hanrs
 * @email 4076130@qq.com
 * @since 2022/3/28 9:30
 */
@Data
public class ResHeaderDto {

    /**
     * id
     */
    @NotBlank(groups = {UpdateGroup.class}, message = "id不能为空")
    private String id;

    /**
     * 应用id
     */
    @NotBlank(groups = {AddGroup.class}, message = "应用id不能为空")
    private String clientId;

    /**
     * 父id
     */
    private String parentId;

    /**
     * 资源类型(menu:菜单;permission:授权点;app:h5应用)
     */
    private String resType;

    /**
     * 名称
     */
    @NotBlank(message = "资源名称不能为空")
    private String resName;


    /**
     * 图标
     */
    private String icon;

}
